package com.team.panicgame.models.gareve;

import com.badlogic.gdx.math.Vector2;
import com.team.panicgame.Utils;

public class WallSegment {
	public Vector2 p1,p2;
	public boolean hadCollision;
	
	public WallSegment(Vector2 p1,Vector2 p2){
		this.p1 = p1;
		this.p2 = p2;
		
		hadCollision = false;
	}
	
	public boolean setCollision(Ship ship){
		hadCollision = false;
		if(Utils.wallCollisionWithShip(this,ship))
			hadCollision = true;
		
		return hadCollision;
	}
}
